package ee.serge;

import java.awt.Point;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Main {
   
   public static void main(String[] args) throws IOException {
      ee.serge.release.Maze maze = new ee.serge.release.Maze();
      char[][] input = FileHelper.read("mazeinputs/a20.in");
      printMaze(maze.solve(input));
   }
   
   public static void printMaze(char[][] maze) {
      for (int y = 0; y < maze.length; y++) {
         for (int x = 0; x < maze[1].length; x++) {
            if (maze[x][y] == 'X') System.out.print("@@");
            else if (maze[x][y] == ' ') System.out.print("  ");
            else System.out.print(maze[x][y] + " ");
         }
         System.out.println();
      }
   }
  
}
